package com.huike.controller.clues;

import com.huike.clues.domain.TbClue;
import com.huike.clues.service.ClueService;
import com.huike.common.result.PageResult;
import com.huike.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/clues/clue")
@Api(tags = "线索接口")
public class ClueController {
    @Autowired
    private ClueService clueService;

    @ApiOperation("查看线索页面")
    @GetMapping("/list")
    public Result<PageResult> list(@PathVariable Integer id) {
        return clueService.listClue(1);
    }

    @ApiOperation("查看线索池子")
    @GetMapping("/pool")
    public Result<PageResult> pool(@PathVariable Integer id) {
        return clueService.listCluePool(1);
    }
}
